public class Student {
        public static void main(String[] args){
            Student stu=new Student(110,22,"张三");
            stu.show();
             Student stu1=new Student(111,82,"李四");
            stu1.show1();}

    private int num;
    private String name;
    private double score;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
    public Student(int num, double score, String name) {
        this.num = num;
        this.score= score;
        this.name = name;
    }
    public void show(){
        System.out.println("该学生的学号是："+this.num);
        System.out.println("该学生的成绩是："+this.score);
        System.out.println("该学生的姓名是："+this.name);
    }
    public void show1(){
        System.out.println("该学生的学号是："+this.num);
        System.out.println("该学生的成绩是："+this.score);
        System.out.println("该学生的姓名是："+this.name);
    }

}